import request from '@/utils/request'
export function getSubjectList(data, pageNum, pageSize) {
    return request({
        url: '/subject/getSubjectList',
        method: 'post',
        data,
        params: {
            pageNum: pageNum,
            pageSize: pageSize
        },
    })
}


export function addSubject(data) {
    return request({
        url: '/subject/addSubject',
        method: 'post',
        data
    })
}

export function updateSubject(data) {
    return request({
        url: '/subject/updateSubject',
        method: 'post',
        data
    })
}
export function getSubjectById(id) {
    return request({
        url: '/subject/getSubjectById/' + id,
        method: 'get'
    })
}

export function delSubject(ids) {
    return request({
        url: '/subject/deleteByIds/' + ids,
        method: 'delete'
    })
}
